<?php
class C_statistik extends CI_Controller {
	function __construct(){
		parent::__construct();
		checkLogin();
		$this->load->model('m_statistik');
	}
	function index(){
		$task = secure_post('task');
		switch($task){
			default :
                $data["pengunjung"] = json_encode($this->m_statistik->pengunjung());
                $data["userloket"] = json_encode($this->m_statistik->userloket());
            
				$this->load->view('app/v_statistik',$data);
		}
	}
}